package org.kwisatz.proxybot;

public class Message
{
	public static final String PRIVMSG = "PRIVMSG";
	private String nick;
	private String user;
	private String server;
	private String command;
	private String cmdParam;
	private String endOfMsg;

	public Message(String nick, String user, String server, String command,
		String cmdParam, String endOfMsg)
	{
		this.nick = nick;
		this.user = user;
		this.server = server;
		this.command = command;
		this.cmdParam = cmdParam;
		this.endOfMsg = endOfMsg;
	}

	public String getCmdParam() {
		return cmdParam;
	}

	public String getCommand() {
		return command;
	}

	public String getEndOfMsg() {
		return endOfMsg;
	}

	public String getNick() {
		return nick;
	}

	public String getServer() {
		return server;
	}

	public String getUser() {
		return user;
	}
	
	public String toString() {
		return
			"[ nick: " + nick +
			", user: " + user +
			", server: " + server +
			", command: " + command +
			", cmdParam: " + cmdParam +
			", endOfMsg: " + endOfMsg + " ]";
	}
}
